@echo off
echo ==================================================
echo Survivor区演示 - 禁用UseAdaptiveSizePolicy
echo ==================================================
echo.

REM 编译项目
echo 编译项目...
mvn clean compile

echo.
echo 启动Survivor演示程序...
echo.

java -Xms1536m -Xmx1536m -Xmn512m ^
     -XX:+PrintGCDetails -XX:+PrintGCTimeStamps ^
     -XX:-UseAdaptiveSizePolicy ^
     -cp target/classes com.example.SurvivorDemo

pause